Page({
  data: {
    windowHeight: 100,
    id: "",
    title: " ",
    count1: " ",
    url: "",
    addr: "",
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    that.id = options.id;
    if (that.id == 1) {
      that.setData({
        title: "如何找到资源回收机？",
        count1: "返回小程序首页，找到附近回收机点击可找到离你最近的回收机，并可前往投递",
        url:"../../nearbyRecyclingMachine/nearbyRecyclingMachine",
        addr:"点击前往附近回收机"
      });
    } else
      if (that.id == 3) {
          that.setData({
            title: "投递之后没收到积分怎么办？",
            count1: "投递之后可在小程序首页点击我的，找到投放记录，点击进去看是否有投放记录，并且是否有增加积分显示，或者在首页查看你的当前积分是否增加，如存在积分问题，请联系当地负责人员",
            url: "../../putRecord/putRecord",
            addr: "点击查看投放记录"
          });
        }
      else
        if (that.id == 4) {
          that.setData({
            title: "如何预约上门？",
            count1: "点击首页预约上门，填写小区信息点击提交即可，提交完成之后可在我的预约记录查看！",
            url: "../../book/book",
            addr: "点击前往预约"
          });
        }
    //设置scroll-view高度
    wx.getSystemInfo({
      success: function (res) {
        that.setData({ windowHeight: res.windowHeight });
      }
    });
  },
  

})
